{extend name="public/base" /}

{block name="title"}<title>{$Think.lang.list}</title>{/block}

{block name="pjax_container"}
<div class="hry-content-wrapper">
    <section class="content-header">
        <ol class="breadcrumb">
            <li>会员管理</li>
            <li>会员列表</li>
            <li class="active">订单详情</li>
        </ol>
    </section>
    <section class="content">
        <div class="top_box">
            <div>用户:{$user_info.username} </div>
            <div>累计认投金额: ￥{$total_money} </div>
            <div class="dao_chu_1"  data-uid="{$user_info.id}"><a  class="bian_geng" href="/hryweb.php/member/memberOrderChange/uid/{$user_info.id}">查看变更记录</a></div>
            <div class="dao_chu" id="dwonload"  data-uid="{$user_info.id}">导出</div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="hry-form-wrapper">
                    <div class="box-body table-responsive">
                        <table class="table table-bordered table-hover table-sort">
                            <tr>
                                <th>项目名称</th>
                                <th>姓名</th>
                                <th>手机号码</th>
                                <th>认投金额</th>
                                <th width="178">{$Think.lang.action}</th>
                            </tr>
                            {volist name="dataList" id="vo"}
                            <tr>
                                <td>{$vo.project_name}</td>
                                <td>{$vo.username}</td>
                                <td>{$vo.mobile}</td>
                                <td>{$vo.money}</td>
                                <td>
                                    {if condition="$vo.has_authorize>1"}
                                    <a class="btn-text btn-primary"  href="javascript:void(0);" >
                                        <span class="color-no">变更</span>
                                    </a>
                                    {else}
                                    <a class="btn-text btn-primary"  href="/hryweb.php/member/memberOrderChangeInfo/order_id/{$vo.id}/uid/{$vo.uid}" >
                                       变更
                                    </a>
                                    {/if}
                                </td>
                            </tr>
                            {/volist}
                        </table>
                    </div>
                    <div class="box-footer clearfix">
                        {$dataList->render()}
                    </div>
                </div>
            </div>


        </div>
    </section>
</div>

<script type="text/javascript">
    $(function(){
        /*ajax页面加载icheck，有该控件的页面才需要*/
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });

        $('#dwonload').click(function () {
            var url = "{:url('member/memberOrderDetailList')}";
            uid=$(this).data("uid");
            location.href = url + "?uid="+ uid + "&down=1";
        });


        {if condition=" $rest_login == 1 "}
        restlogin('{$rest_login_info}');   //登录超时
        {/if}
    })

</script>

<style type="text/css">
    .top_box{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        font-size: 20px;
    }
    .dao_chu{
        font-size: 18px;
        width: 50px;
        height: 30px;
        color: #ffffff;
        background-color: #00a7d0;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
    }
    .shou_ru{
        color: green;
    }
    .dao_chu_1{
        font-size: 18px;
        width: 200px;
        height: 30px;
        color: #ffffff;
        background-color: #00a7d0;
        border-radius: 5px;
        text-align: center;
        line-height: 30px;
    }
    .bian_geng{
        color: #ffffff;
    }
    .color-no{
        color: grey !important;
    }
</style>


{/block}